<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/mycss/test.css" type="text/css" rel="stylesheet"  media="screen" />
<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />

<link rel="stylesheet" href="css/mycss/my.css" type="text/css" media="screen" />

<!--                       Javascripts                       -->
<!-- jQuery -->
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<!-- jQuery Configuration -->
<script type="text/javascript" src="resources/scripts/simpla.jquery.configuration.js"></script>
<!-- Facebox jQuery Plugin -->
<script type="text/javascript" src="resources/scripts/facebox.js"></script>
<!-- jQuery WYSIWYG Plugin -->
<script type="text/javascript" src="resources/scripts/jquery.wysiwyg.js"></script>
<!-- jQuery Datepicker Plugin -->
<script type="text/javascript" src="resources/scripts/jquery.datePicker.js"></script>

<script type="text/javascript" src="resources/scripts/jquery.date.js"></script>
<script>

function delspxh(xhid){
	 var cf=confirm("你确定要删除该菜单项吗？");
	 if(cf==true){
		 delAjax(xhid);
	 }else{
		 return false;
	 }
}

function delAjax(xhid){
	 $.ajax({
		    url: "deleteSpxh.action",
		    type: "post",
		    data: "spxhBean.xhid="+xhid,
		    datetype: "json",
		    success: function(date) {
		    	var flag=date.bflag;
		    	if(flag){
		    		window.location=encodeURI("../admin/listSpxh.action");
		    	}else{
		    		alert("删除失败")
		    	}
		     }
		 });
}

function Edit(xxid){
	
	//window.location=encodeURI("../admin/findlistXx.action?lsxxid="+xxid);
}


</script>


<#assign s=JspTaglibs["/WEB-INF/tld/struts-tags.tld"] />



<title>无标题文档</title>
</head>

<body>

  <div id="main-content">
    <!-- Main Content Section with everything -->
    <noscript>
    <!-- Show a notification if the user has disabled javascript -->
    </noscript>
    <!-- End .clear -->
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>型号管理</h3>
        <ul class="content-box-tabs">
          <li></li>
          <!-- href must be unique and match the id of target div -->
          <li></li>
        </ul>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
          <!-- This is the target div. id must match the href of this div's tab -->
          
         
             
              <a href="#messages"  rel="modal" title="添加">添加</a>
          <table>
            <thead>
              <tr>
                <th>型号</th>
                <th>排序</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
            <@s.iterator id="spxh" value="lstSpxh">	
              <tr>
                <td><@s.property value='#spxh.spxhnr'/></td>
                <td><@s.property value='#spxh.px'/></td>
                <td>
                  <!-- Icons -->
                     <a href="#" title="Edit"><img src="images/icons/pencil.png" alt="Edit" /></a> <a href="#" title="Delete" onclick="delspxh(<@s.property value='#spxh.xhid'/>)"><img src="images/icons/cross.png" alt="Delete"  /></a> </td>
              </tr>
             </@s.iterator>
            </tbody>
          </table>
        </div>
        <!-- End #tab1 -->
        <div class="tab-content" id="tab2"></div>
        <!-- End #tab2 -->
      </div>
      <!-- End .content-box-content -->
    </div>
    <!-- End .content-box --><!-- Start Notifications --><!-- End Notifications -->
<div id="footer"> <small>
      &#169; Copyright 2011 Your Company | Powered by <a href="#">kimxc11@gmail.com</a> | <a href="#">Top</a> </small> </div>
  <!-- End #footer -->
  
  
    <div id="messages" style="display: none">
          <form id="saveXxFrom" action="saveSpxh.action" method="post">
          <input type="hidden" name="spxhBean.splbfid" value="${splbfid}"/>
          <input type="hidden" name="splbfid" value="${splbfid}"/>
          <fieldset style="margin-top:20px;" >
          <label class="search_lable">型号</label>
         <input class="search_myself" name="spxhBean.spxhnr" type="text"/>
          </fieldset>
          <fieldset style="margin-top:20px;">
          <label class="search_lable" >排&nbsp;&nbsp;&nbsp;序</label>
          <input class="search_myself" name="spxhBean.px" type="text"/>
          </fieldset>
           <fieldset style="margin-top:20px;">
          <input class="button" type="submit" value="保存" />
          </fieldset>
        </form>
      </div>
    

 
</div>

</body>
</html>
